﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:od="http://opendope.org/xpaths" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://opendope.org/xpaths" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="xpaths">
    <xs:complexType>
      <xs:sequence>
        <xs:element maxOccurs="unbounded" name="xpath">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="dataBinding">
                <xs:complexType>
                  <xs:attribute name="xpath" type="xs:string" use="required" />
                  <xs:attribute name="storeItemID" type="xs:string" use="required" />
                  <xs:attribute name="prefixMappings" type="xs:string" />
                  <!-- don't think @bindingrole is necessary-->
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="id" type="xs:ID" use="required" />
            <xs:attribute name="questionID" type="xs:NCName" />
            <xs:attribute name="name" type="xs:string" />
            <xs:attribute name="descrption" type="xs:string" />
            <xs:attribute name="comments" type="xs:string" />
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>